Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 332
Dependencies 30
Dependents 3
Total lines 2,615
Lines of code 1,767
Logical lines of code 782
Comment lines 469
Methods 96
Properties 18

Methods 96

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
32 27 101
initFormFields()
B
21
7 309
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
42 13 51
getCountryPaymentTypes()
A
45 11 40
captureWcOrder()
A
41 9 57
populateTamaraAddress()
A
53 9 20
populateTamaraOrderItems()
A
41 6 58
adjustTamaraGatewayOnCheckout()
A
49 8 28
populateTamaraRefundOrderItems()
A
42 6 55
onSaveSettings()
A
46 7 39
tamaraCapturePayment()
A
52 8 22
isMethodAvailableFromRemote()
S
53 7 22
validateRequiredFields()
S
61 8 10
getTamaraCaptureId()
S
51 6 26
getTamaraOrderId()
S
51 6 26
getTamaraCancelId()
S
51 6 26
getAvailableSupportedInstalments()
S
46 5 35
renderTamaraPayNowOptionHtml()
S
50 5 28
renderTamaraCountryPaymentTypesHtml()
S
50 5 28
getAvailablePayLaterOptions()
S
54 5 20
getAvailablePayNowOptions()
S
54 5 20
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
refinePublicKey()
S
60 5 14
getTamaraCancelUrl()
S
53 4 27
getTamaraFailureUrl()
S
53 4 27
generatePayLaterOptionContent()
S
61 5 11
generatePayNowOptionContent()
S
61 5 11
populateTamaraOrder()
S
50 4 25
isSingleCheckoutEnabled()
S
56 4 19
getPublicKeyFromRemote()
S
56 4 19
countInstalmentPlans()
S
58 4 15
verifyApiParams()
S
56 3 20
deleteTamaraWebhook()
S
56 3 19
init()
S
56 3 17
populateTamaraDefaultDescription()
S
57 3 16
getCurrentCountryCode()
S
64 4 9
handleTamaraSuccessOrderReceivedPage()
S
61 3 11
createTamaraCheckoutSession()
S
58 2 16
initTamaraClient()
S
59 2 15
setTamaraIconForPaymentGateway()
S
64 3 9
getWebhookId()
S
69 3 7
getPaymentTypeTitleMapping()
S
59 2 14
initBaseAttributes()
S
59 2 14
generatePayInXOptionsContent()
S
59 2 13
getTamaraIpnUrl()
S
63 2 12
getTamaraWebhookUrl()
S
63 2 12
renderPaymentTypeDescription()
S
63 2 11
getPaymentTypeMapping()
S
57 1 19
populateTamaraMerchantUrl()
S
56 1 19
getErrorMap()
S
56 1 18
renderHelpTextsHtml()
S
58 1 17
isBeautifyMerchantUrlsEnabled()
S
78 2 3
getPaymentTypes()
S
68 2 7
processRewriteRules()
S
69 2 7
populateMinLimit()
S
71 2 5
populateMaxLimit()
S
71 2 5
getDefaultBillingCountryCode()
S
75 2 4
isCartTotalValid()
S
71 2 5
getStoreBaseCountryCode()
S
78 2 3
getTamaraSuccessUrl()
S
68 2 7
prepareDebugLogDownloadLink()
S
63 2 10
initSettingAttributes()
S
60 1 13
populateTamaraConsumer()
S
60 1 13
buildCountryPaymentTypesCacheKeyV2()
S
63 1 11
get_option_key()
S
81 1 3
getPayByLaterTitle()
S
81 1 3
getPublicKey()
S
82 1 3
getPayByLaterTitleAr()
S
81 1 3
getPayInXTitle()
S
79 1 3
convertAllowedCountryStringValue()
S
75 1 4
updateTamaraCancelId()
S
75 1 4
updateTamaraOrderId()
S
75 1 4
updateTamaraCaptureId()
S
75 1 4
getPayInXTitleAr()
S
79 1 3
isWebhookEnabled()
S
80 1 3
isSandboxMode()
S
79 1 3
isLiveMode()
S
79 1 3
populateDefaultPayInXTitles()
S
70 1 6
processAdminOptions()
S
81 1 3
initSettings()
S
81 1 3
process_payment()
S
80 1 3
populateTamaraBillingAddress()
S
76 1 4
refreshPaymentTypeCacheV2()
S
77 1 4
refreshPaymentTypeCache()
S
77 1 4
getShippingInfo()
S
69 1 7
raiseAdminError()
S
74 1 5
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
updateThisSettingsToOptions()
S
66 1 10
initTamaraStatus()
S
63 1 9
getCurrencyToCountryMapping()
S
67 1 8
buildTamaraClient()
S
68 1 7
getCountryCodeToCountryMapping()
S
67 1 8
buildCountryPaymentTypesCacheKey()
S
71 1 6
__construct()
S
78 1 4